import axios from '../axios'

export const addBatch = (params) => {
    return axios.post(`activity/coupon/batch`, params)
}

export const modifyBatch = (id, params) => {
    return axios.put(`activity/coupon/batch/` + id, params)
}

export const batchList = (params) => {
    return axios.get(`activity/coupon/batch/list`, {params: params})
}

export const batchItems = () => {
    return axios.get(`activity/coupon/batch/items`)
}

export const removeBatch = (id) => {
    return axios.delete(`activity/coupon/batch/` + id);
}

export const releaseBatch = (id) => {
    return axios.patch(`activity/coupon/batch/release/` + id);
}

export const offlineBatch = (id) => {
    return axios.patch(`activity/coupon/batch/offline/` + id);
}

export const batchInfo = (id) => {
    return axios.get(`activity/coupon/batch/` + id);
}